package cn.engage.org.domain;

import cn.engage.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 实体类：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BaseDomain{

    private String name;
    private String tel;
    // pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8"
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date registerTime = new Date();
    /**
     * 店铺状态：0待审核，1以审核，-1驳回，2待激活
     */
    private Integer state = 0;
    private String address;
    private String logo;
    private Long adminId;

    private Employee admin;

}
